package cn.demoncat.util.pay.yeepay.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 易宝支付配置
 *
 * @author 延晓磊
 * @since 2020年10月14日
 */
@Component
@ConfigurationProperties(prefix = "pay.yeepay")
public class YeepayProperties {

    // 平台商户编号
    private String platformNo;
    // 应用标识
    private String appKey;
    // RSA私钥（公钥配置在易宝开放平台）
    private String rsaPassword;
    // 商户入网回调
    private String merchantRegisterNotifyUrl;
    // 交易下单-支付结果通知
    private String payNotifyUrl;
    // 申请退款-结果通知
    private String refundNotifyUrl;
    // 商户入网开通产品：参与/test/java/test.ProductTest
    private String product;

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getRsaPassword() {
        return rsaPassword;
    }

    public void setRsaPassword(String rsaPassword) {
        this.rsaPassword = rsaPassword;
    }

    public String getMerchantRegisterNotifyUrl() {
        return merchantRegisterNotifyUrl;
    }

    public void setMerchantRegisterNotifyUrl(String merchantRegisterNotifyUrl) {
        this.merchantRegisterNotifyUrl = merchantRegisterNotifyUrl;
    }

    public String getPayNotifyUrl() {
        return payNotifyUrl;
    }

    public void setPayNotifyUrl(String payNotifyUrl) {
        this.payNotifyUrl = payNotifyUrl;
    }

    public String getRefundNotifyUrl() {
        return refundNotifyUrl;
    }

    public void setRefundNotifyUrl(String refundNotifyUrl) {
        this.refundNotifyUrl = refundNotifyUrl;
    }

    public String getPlatformNo() {
        return platformNo;
    }

    public void setPlatformNo(String platformNo) {
        this.platformNo = platformNo;
    }

    public String getProduct() {
        return product;
    }

    public void setProduct(String product) {
        this.product = product;
    }
}
